# Setting `Playing ` status
await bot.change_presence(activity=discord.Game(name="a game"))
# Setting `Streaming ` status
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))
# Setting `Listening ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))
# Setting `Watching ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))
@bot.event
async def on_member_update(prev,cur):
games = ["overwatch", "rocket league", "minecraft", "stardew valley"]
print(cur.activity.name.lower())
if cur.activity and cur.activity.name.lower() in games:
#do something